<!-- 此页面没做loaded处理（图片是否加载成功/失败），因为套层级太多，太复杂，如有需要，需要去cart页面（购物车页面）参考 -->
<template>
	<view class="container">
		<view class="search">
			<image src="../../static/icon-fire.png"></image>
			<input class="ser-input" type="text" placeholder="输入关键字搜索" v-model="searchKey" confirm-type="search" @confirm="toSearch" />
		</view>
		<view class="navigation">
			<scroll-view scroll-x show-scrollbar enable-flex class="navigation_bg">
				<view class="navigation_box">
					<span v-for="(item, index) in navList" :key="index" :class="item.type == 0?'active':''">
						{{item.name}}
					</span>
				</view>
			</scroll-view>
		</view>
		<!-- 头部轮播 -->
		<view class="carousel-section">
			<view class="carousel_bg"></view>
			<swiper class="carousel" circular autoplay="true" duration="1000" @change="swiperChange">
				<swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item">
					<image :src="item.imgUrl" />
				</swiper-item>
			</swiper>

			<!-- 自定义swiper指示器 -->
			<view class="swiper-dots">
				<text class="num">{{swiperCurrent+1}}</text>
				<text class="sign">/</text>
				<text class="num">{{swiperLength}}</text>
			</view>
		</view>
		<!-- 分类 -->
		<view class="content">
			<!-- <view class="classification">
				<scroll-view scroll-x show-scrollbar enable-flex class="classification_bg">
					<view class="classification_box">
						<view class="classification_box_eve" v-for="(item, index) in classificationBox" :key="index">
							<image :src="item.logo"></image>
							<span class="classification_box_eve_text">
								{{item.name}}
							</span>
						</view>
					</view>
				</scroll-view>
			</view> -->
			
			
			
			
			<view class="classification_two">
				<scroll-view scroll-x show-scrollbar enable-flex class="classification_two_bg">
					<view class="classification_two_box" :style="{'width':(classificationTwoBox.length*100)+'vw'}">
						<view class="classification_two_box_eve" v-for="(goods, index) in classificationTwoBox" :key="index">
							<view class="classification_two_box_eve_son" v-for="(item, index2) in goods" :key="index2">
								<image :src="item.logo"></image>
								<span class="classification_two_box_eve_text">
									{{item.name}}
								</span>
							</view>
						</view>
					</view>
				</scroll-view>
			</view>
			
			
			
			
			
			
			<!-- <view class="cate-section">
				<view @tap="navToList(item.linkUrl)" class="cate-item" v-for="(item, index) in navBtn" :key="index">
					<image :src="item.imgUrl"></image>
					<text>{{item.title}}</text>
				</view>
			</view> -->
			<image src="/static/fptc.jpg" class="bfnt_img" @click="toOtherPages('/pages/product/salesPromotion')"></image>
			<image src="/static/fptc.jpg" class="bfnt_img" @click="toOtherPages('/pages/product/salesPromotion')"></image>
			<view class="some_box">
				<view class="some_box_one">
					<view class="some_box_one_eve">
						<view class="some_box_one_eve_top">
							辣选直播
						</view>
						<text>帮你开店做老板，百万粉丝等你来</text>
						<image src="/static/2.gif"></image>
					</view>
					<view class="some_box_one_eve">
						<view class="some_box_one_eve_top">
							年货会场
						</view>
						<text>省心更省钱</text>
						<image src="/static/fptc.jpg"></image>
					</view>
				</view>
				<view class="some_box_two">
					<view class="some_box_two_eve">
						<view class="some_box_two_eve_top">
							年货会场
						</view>
						<text>省心更省钱</text>
						<view class="some_box_two_eve_bot">
							<view class="some_box_two_eve_bot_eve">
								<image src="/static/fptc.jpg"></image>
								<text>口红</text>
							</view>
							<view class="some_box_two_eve_bot_eve">
								<image src="/static/fptc.jpg"></image>
								<text>香水</text>
							</view>
						</view>
					</view>
					<view class="some_box_two_eve">
						<view class="some_box_two_eve_top">
							年货会场
						</view>
						<text>省心更省钱</text>
						<view class="some_box_two_eve_bot">
							<view class="some_box_two_eve_bot_eve">
								<image src="/static/fptc.jpg"></image>
								<text>口红</text>
							</view>
							<view class="some_box_two_eve_bot_eve">
								<image src="/static/fptc.jpg"></image>
								<text>香水</text>
							</view>
						</view>
					</view>
				</view>
			</view>
			<!-- 限时抢购 -->
			<view class="flash">
				<view class="flash_top">
					<text class="mallicon icon-shizhong"></text>
					<text class="flash_top_text">限时抢购</text>
				</view>
				<view class="flash_time">
					<scroll-view scroll-x show-scrollbar enable-flex class="flash_time_bg">
						<view class="flash_time_box">
							<view class="flash_time_box_eve" v-for="(item, index) in flashBox" :key="index" :class="item.type == 0?'active':''">
								<span class="flash_time_box_eve_time">
									{{item.time}}
								</span>
								<span class="flash_time_box_eve_text">
									{{item.state}}
								</span>
							</view>
						</view>
					</scroll-view>
				</view>
				<view class="flash_content">
					<image src="/static/fptc.jpg"></image>
					<view class="flash_content_right">
						<text class="flash_content_right_name">染发剂</text>
						<view class="flash_content_right_num">
							<view class="flash_content_right_num_percentage">
								<view class="flash_content_right_num_percentage_now">已售80%</view>
							</view>
							<text>限量150件</text>
						</view>
						<view class="flash_content_right_price">
							<view class="flash_content_right_price_left">
								<text class="flash_content_right_price_left_now">$66.6</text>
								<text class="flash_content_right_price_left_old">99</text>
							</view>
							<view class="flash_content_right_price_buy">
								立即抢
							</view>
						</view>
					</view>
				</view>
			</view>
			<view class="f-header m-t" style="margin-bottom: -10upx;">
				<!-- <image src="/static/temp/h1.png"></image> -->
				<text class="mallicon icon-pingpai icon_style"></text>
				<view class="tit-box">
					<text class="tit">爆款推荐</text>
				</view>
				<!-- <text class="mallicon icon-you"></text> -->
			</view>
			<block>
				<view class="class-floor">
					<view class="guess-section">
						<view v-for="(goodSon, index6) in fpntBox.brand_list" :key="index6" class="guess-item" style="width: 46vw;margin: 2vw;padding: 3vw;"
						 @click="navToDetailPage(goodSon.id)">
							<view class="image-wrapper" style="height: 260upx;">
								<image :src="goodSon.logo" class="loaded" mode="aspectFill" lazy-load></image>
							</view>
							<text class="title clamp">{{goodSon.title}}</text>
							<text class="subtitle clamp">原价：<text style="text-decoration:line-through">{{goodSon.price_cost}}</text></text>
							<text class="price">￥{{goodSon.price_market}}</text>
						</view>
					</view>
				</view>
			</block>
		</view>
	</view>
</template>

<script>
	import {
		mapState
	} from 'vuex';
	// import bmap from "@/lib/bmap-wx.js"
	export default {

		data() {
			return {
				searchKey: '',
				titleNViewBackground: 'rgb(245,95,113)',
				swiperCurrent: 0,
				swiperLength: 3,
				carouselList: [{
						imgUrl: "/static/banner-1.png",
						background: "rgb(245,95,113)",
					},
					{
						imgUrl: "/static/banner-2.png",
						background: "rgb(250,103,95)",
					},
					{
						imgUrl: "/static/banner-3.png",
						background: "rgb(250,123,49)",
					}
				],
				navBtn: [], //导航
				homeNews: '', //公告
				seckillGoodsList: [],
				mallGoodsList: [],
				fpntBox: {}, //扶贫农特
				
				
				// 新
				classificationBox:[
					{logo:"/static/icon-fire.png",name:"首页"},
					{logo:"/static/icon-fire.png",name:"厨房电器"},
					{logo:"/static/icon-fire.png",name:"家居百货"},
					{logo:"/static/icon-fire.png",name:"美妆护肤"},
					{logo:"/static/icon-fire.png",name:"食品生鲜"},
					{logo:"/static/icon-fire.png",name:"服装箱包"},
					{logo:"/static/icon-fire.png",name:"微瑕区"},
					{logo:"/static/icon-fire.png",name:"时令果蔬"},
				],
				classificationTwoBox:[
					[
						{logo:"/static/state-cartempty.jpg",name:"首页"},
						{logo:"/static/state-cartempty.jpg",name:"厨房电器"},
						{logo:"/static/state-cartempty.jpg",name:"家居百货"},
						{logo:"/static/state-cartempty.jpg",name:"美妆护肤"},
						{logo:"/static/state-cartempty.jpg",name:"食品生鲜"},
						{logo:"/static/icon-fire.png",name:"服装箱包"},
						{logo:"/static/icon-fire.png",name:"微瑕区"},
						{logo:"/static/icon-fire.png",name:"时令果蔬"},
					],
					[
						{logo:"/static/icon-fire.png",name:"首页"},
						{logo:"/static/icon-fire.png",name:"厨房电器"},
						{logo:"/static/icon-fire.png",name:"家居百货"},
						{logo:"/static/icon-fire.png",name:"美妆护肤"},
						{logo:"/static/icon-fire.png",name:"食品生鲜"},
						{logo:"/static/icon-fire.png",name:"服装箱包"},
					]
				],
				navList:[
					{type:0,name:"首页"},
					{type:1,name:"厨房电器"},
					{type:1,name:"家居百货"},
					{type:1,name:"美妆护肤"},
					{type:1,name:"食品生鲜"},
					{type:1,name:"服装箱包"},
					{type:1,name:"微瑕区"},
					{type:1,name:"时令果蔬"},
				],
				flashBox:[
					{type:0,time:"06:00",state:"抢购中"},
					{type:1,time:"07:00",state:"未开始"},
					{type:1,time:"08:00",state:"未开始"},
					{type:1,time:"09:00",state:"未开始"},
					{type:1,time:"10:00",state:"未开始"},
					{type:1,time:"11:00",state:"未开始"},
					{type:1,time:"12:00",state:"未开始"},
					{type:1,time:"13:00",state:"未开始"},
				]
			};
		},
		onShow() {
		},
		onLoad() {
			// ---------------------新接口---------------------
			this.getAllBox();
		},
		//下拉刷新
		onPullDownRefresh() {
			this.seckillGoodsList = [];
			this.mallGoodsList = [];
			this.getSeckillGoodsList("refrash");
			this.loadData("refrash");
		},
		computed: {
			...mapState(['hasLogin'])
		},
		methods: {
			toOtherPages(url){
				console.log('这里是跳转',url)
				uni.navigateTo({
					url: url
				})
			},
			toSearch() {
				let that = this;
				uni.navigateTo({
					url: '../product/list?key=' + that.searchKey,
				})
			},

			getSeckillGoodsList(type) {
				this.$Request.get(this.$api.home.SeckillGoods).then(res => {
					this.seckillGoodsList = res.data;
					if (type == "refrash") {
						uni.stopPullDownRefresh();
					}
				}, err => {
					//console.log("err: " + JSON.stringify(err));
				});
			},
			loadData(type) {
				let notLoading = false;
				if (type == "refrash") {
					notLoading = true;
				}
				this.$Request.get(this.$api.home.MallGoodsByClass).then(res => {
					this.mallGoodsList = res.data;
					if (type == "refrash") {
						uni.stopPullDownRefresh();
					}
				}, err => {
					//console.log("err: " + JSON.stringify(err));
				});
			},

			//轮播图切换修改背景色
			swiperChange(e) {
				const index = e.detail.current;
				this.swiperCurrent = index;
			},
			navToList(key) {
				uni.navigateTo({
					url: key
					// url: `/pages/product/list?key=${key}`
				})
			},
			//详情页
			navToDetailPage(item) {
				//为了模拟数据，正常项目里按照业务传值
				this.isNoHasLogin(item)
			},
			// ---------------------------------------------新---------------------------------------------
			getAllBox() {
				let that = this;
				that.$Request.get(that.$api.index.indexAll).then(res => {
					that.carouselList = res.data[0].data; //banner图
					this.homeNews = res.data[1].data;
					// console.log(8649864646555,res.data[0].data.length)
					// let swiperLengthBox = []
					// for(let vm of res.data[0].data){
					// 	console.log(vm,'呵呵哒的ad阿瓦达')
					// 	swiperLengthBox.push(vm)
					// }

					that.swiperLength = Object.keys(res.data[0].data).length;
					that.navBtn = res.data[2].data; //导航
					that.seckillGoodsList = res.data[5].data //热销推荐
					//console.log(that.carouselList, '新首页接口获取', res)
				}, err => {
					//console.log("err: " + JSON.stringify(err));
				});
				that.$Request.get(that.$api.index.getMerchGood).then(res => {
					console.log('扶贫农特6688', res.data)
					// 模拟添加数据
					for (let vm of res.data.merch_list) {
						this.$set(vm, 'merch_centent', "暂无介绍")
						this.$set(vm, 'address', "暂无距离")
					}
					that.fpntBox = res.data;
				}, err => {
					//console.log("err: " + JSON.stringify(err));
				});
			},
			isNoHasLogin(item) {
				let that = this;
				if (!that.hasLogin) {
					uni.showModal({
						title: '登录',
						content: '登录后才可以查看商品详情',
						success: function(res) {
							if (res.confirm) {
								uni.navigateTo({
									url: '/pages/login/login'
								});
							} else if (res.cancel) {
								// uni.switchTab({
								// 	url: '/pages/tabBar/home'
								// });
							}
						}
					});
				} else {
					uni.navigateTo({
						url: `/pages/product/detail?goods=${that.$utils.putExtra(item)}`
					})
				}
			}
		},
	}
</script>

<style lang="scss">
	page {
		background: #f5f5f5;
	}

	.m-t {
		// margin-top: 16upx;
	}

	.icon_style {
		margin-right: 2vw;
		margin-left: 4vw;
		font-size: 28rpx;
	}
	.search {
		background: #D22B19;
		padding: 20rpx 0;
		display: flex;
		align-items: center;
		padding: 2vw;
		image {
			width: 60rpx;
			height: 60rpx;
		}
		
		input {
			padding: 10rpx;
		}
	}
	// 导航
	.navigation{
		.navigation_bg{
			background: red;
		}
		.navigation_box{
			display: flex;
			.scroll-view_H{
			  width: 100%;
			  white-space: nowrap;
			}
			.scroll-view-item_H{
			  width: 200px;
			  height: 100px;
			  display: inline-block;
			}
			span{
				display: inline-block;
				padding-bottom: 2vw;
				margin: 2vw;
				color: #fff;
				white-space:nowrap;
			}
			span.active{
				border-bottom: 2rpx solid #fff;
			}
		}
	}
	.ser-input {
		// position: absolute;
		// top: 8rpx;
		width: 96%;
		margin-left: 2%;
		text-align: center;
		height: 66upx;
		line-height: 66upx;
		text-align: center;
		font-size: 28upx;
		// color: $font-color-base;
		border-radius: 20px;
		background: rgba(255, 255, 255, 1);
	}

	/* 头部 轮播图 */
	.carousel-section {
		background-color: red;
		position: relative;
		.titleNview-background {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			transition: .4s;
		}
		.carousel_bg{
			position: absolute;
			bottom: -20rpx;
			left: 0;
			width: 100vw;
			height: 60rpx;
			background: #fff;
			border-radius: 30%;
		}
	}
	// 分类1
	.classification{
		.classification_bg{
			background: #fff;
			.classification_box{
				display: flex;
				.scroll-view_H{
				  width: 100%;
				  white-space: nowrap;
				}
				.scroll-view-item_H{
				  width: 200px;
				  height: 100px;
				  display: inline-block;
				}
				.classification_box_eve{
					padding: 1vw 4.5vw;
					display:flex;
					flex-direction: column;
					align-items: center;
					justify-content: center;
					image{
						width: 100rpx;
						height: 100rpx;
					}
					.classification_box_eve_text{
						white-space:nowrap;
						font-size:28rpx;
						color:#999;
					}
				}
				.classification_box_eve.active{
					.classification_box_eve_time{
						color:red;
					}
					.classification_box_eve_text{
						color:red;
					}
				 }
			}
		}
	}
	
	
	// 分类2
	.classification_two{
		.classification_two_bg{
			background: #fff;
			.classification_two_box{
				display: flex;
				.scroll-view_H{
				  width: 100%;
				  white-space: nowrap;
				}
				.scroll-view-item_H{
				  width: 200px;
				  height: 100px;
				  display: inline-block;
				}
				.classification_two_box_eve{
					width: 100vw;
					display:flex;
					align-items: center;
					flex-wrap:wrap;
					.classification_two_box_eve_son{
						width: 25vw;
						padding: 1vw 4.5vw;
						display:flex;
						flex-direction: column;
						align-items: center;
						justify-content: center;
						image{
							width: 100rpx;
							height: 100rpx;
						}
						.classification_two_box_eve_text{
							white-space:nowrap;
							font-size:28rpx;
							color:#999;
						}
					}
					
				}
				.classification_two_box_eve.active{
					.classification_two_box_eve_time{
						color:red;
					}
					.classification_two_box_eve_text{
						color:red;
					}
				 }
			}
		}
	}
	
	
	
	
	
	
	.carousel {
		width: 90vw;
		margin-left: 5vw;
		height: 294upx;

		// margin-top: 10rpx;
		.carousel-item {
			width: 100%;
			height: 100%;
			// padding: 0 28upx;
			overflow: hidden;
		}

		image {
			width: 100%;
			height: 100%;
			border-radius: 10upx;
		}
	}

	.swiper-dots {
		display: flex;
		position: absolute;
		left: 336upx;
		bottom: 25upx;
		width: 72upx;
		height: 36upx;
		background-image: url();
		background-size: 100% 100%;

		.num {
			width: 36upx;
			height: 36upx;
			border-radius: 50px;
			font-size: 24upx;
			color: #fff;
			text-align: center;
			line-height: 36upx;
		}

		.sign {
			position: absolute;
			top: 0;
			left: 50%;
			line-height: 36upx;
			font-size: 12upx;
			color: #fff;
			transform: translateX(-50%);
		}
	}

	.content {
		// margin-top: -40rpx;
		background: #f2f2f2;
		position: relative;
		z-index: 6;
		// border-radius: 40rpx 40rpx 0px 0px;
		overflow: hidden;
	}

	/* 分类 */
	.cate-section {
		display: flex;
		// justify-content: space-around;
		align-items: center;
		flex-wrap: wrap;
		padding: 30upx 0upx;
		background: #fff;

		.cate-item {
			display: flex;
			flex-direction: column;
			align-items: center;
			// font-size: $font-sm + 2upx;
			// color: $font-color-dark;
			width: 25vw;
		}

		/* 原图标颜色太深,不想改图了,所以加了透明度 */
		image {
			width: 88upx;
			height: 88upx;
			margin-bottom: 14upx;
			border-radius: 50%;
			opacity: .7;
			box-shadow: 4upx 4upx 20upx rgba(250, 67, 106, 0.3);
		}
	}

	// 公告
	.home_news {
		padding: 2vw;
		display: flex;
		align-items: center;
		background: #fff;
		border-top: 2rpx solid #eaeef1;

		.home_news_left {
			font-size: 28rpx;
			color: red;
			width: 70rpx;
			border-right: 2rpx solid #eaeef1;
		}

		.home_news_right {
			display: flex;
			align-items: center;

			.icon {
				color: red;
				margin-right: 2vw;
			}

			.text {
				font-size: 28rpx;
				color: #333;
			}
		}
	}
	.f-header {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 60upx;
		margin-top: 10upx;

		image {
			flex-shrink: 0;
			width: 35upx;
			height: 35upx;
			margin-right: 10upx;
			margin-left: 10upx;
		}

		.tit-box {
			// flex: 1;
			display: flex;
			flex-direction: column;
		}

		.tit {
			font-size: 33upx;
			color: #font-color-dark;
			line-height: 1.3;
			color: #4f4e4e;
			font-weight: bold;
		}

		.tit2 {
			// font-size: $font-sm;
			// color: $font-color-light;
		}

		.icon-you {
			// font-size: $font-lg +2upx;
			// color: $font-color-light;
		}
	}

	/* 分类推荐楼层 */
	.class-floor {
		width: 100%;
		overflow: hidden;
		margin-bottom: 20upx;
		margin-top: -50upx;

		.title {
			// font-size: $font-sm+2upx;
			// color: $font-color-dark;
			margin-top: 10rpx;
		}

		.subtitle {
			// font-size: $font-sm;
			// color: $font-color-light;
			line-height: 2.4;
		}

		.price {
			// color: $uni-color-primary;
			// font-size: $font-lg;
		}

		/* 猜你喜欢 */
		.guess-section {
			display: flex;
			flex-wrap: wrap;
			width: 750upx;
			background: #f2f2f2;
			margin-top: 40rpx;

			.guess-item {
				display: flex;
				flex-direction: column;
				background: #fff;
				width: 29vw;
				margin: 2vw;
				padding: 1vw;
				border-radius: 20rpx;
				box-shadow: 0px 0px 10rpx #999;
			}

			.image-wrapper {
				// width: 230upx;
				height: 180upx;
				flex-shrink: 0;
				position: relative;

				image {
					border-radius: 8upx;
				}
			}
		}
	}
	//底部轮播图样式
	.swiper {
		width: 750rpx;
		height: 417rpx;
	}

	.swiper-item {
		width: 750rpx;
		height: 417rpx;
	}

	.swiper-item image {
		height: 100%;
		width: 100%;
	}
	// 帮扶农特
	.bfnt_img{
		height: 260rpx;
		width: 100vw;
	}
	.some_box{
		.some_box_one{
			display: flex;
			align-items: center;
			justify-content: space-between;
			.some_box_one_eve{
				width: 49vw;
				padding: 2vw;
				background: #fff;
				.some_box_one_eve_top{
					font-size: 32rpx;
				}
				text{
					color: red;
					font-size: 20rpx;
				}
				image{
					width: 45vw;
					height: 200rpx;
				}
			}
		}
		.some_box_two{
			display: flex;
			align-items: center;
			justify-content: space-between;
			.some_box_two_eve{
				width: 49vw;
				padding: 2vw;
				background: #fff;
				text{
					color: red;
					font-size: 20rpx;
				}
				.some_box_two_eve_top{
					font-size: 32rpx;
				}
				.some_box_two_eve_bot{
					display: flex;
					align-items: center;
					justify-content: space-between;
					.some_box_two_eve_bot_eve{
						width: 22vw;
						border: 1rpx solid #ccc;
						image{
							width: 22vw;
							height: 200rpx;
						}
						text{
							display: block;
							text-align: center;
							border: 1rpx solid red;
							border-radius: 60rpx;
							margin:0 10rpx 10rpx 10rpx;
						}
					}
				}
			}
		}
	}
	// 立即抢购
	.flash{
		background:#fff;
		.flash_top{
			padding: 2vw;
			background: #fff;
			display: flex;
			align-items: center;
			justify-content: center;
			.icon-shizhong{
				font-size: 40rpx;
				margin-right: 10rpx;
			}
			.flash_top_text{
				font-size: 32rpx;
				font-weight: bold;
			}
		}
		.flash_time{
			.flash_time_bg{
				background: #fff;
				.flash_time_box{
					display: flex;
					.scroll-view_H{
					  width: 100%;
					  white-space: nowrap;
					}
					.scroll-view-item_H{
					  width: 200px;
					  height: 100px;
					  display: inline-block;
					}
					.flash_time_box_eve{
						padding: 1vw 4.5vw;
						display:flex;
						flex-direction: column;
						align-items: center;
						justify-content: center;
						// border-right: 4rpx solid #ccc;
						.flash_time_box_eve_time{
							white-space:nowrap;
							font-weight: bold;
							font-size:32rpx;
							color:#999;
						}
						.flash_time_box_eve_text{
							white-space:nowrap;
							font-size:28rpx;
							color:#999;
						}
					}
					.flash_time_box_eve.active{
						.flash_time_box_eve_time{
							color:red;
						}
						.flash_time_box_eve_text{
							color:red;
						}
					 }
				}
			}
		}
		.flash_content{
			padding: 2vw;
			display: flex;
			image{
				width: 150rpx;
				height: 200rpx;
				margin-right: 60rpx;
			}
			.flash_content_right{
				width: 68vw;
				.flash_content_right_name{
					font-size: 32rpx;
				}
				.flash_content_right_num{
					margin-left: 10rpx;
					font-size: 28rpx;
					display: flex;
					align-items: center;
					.flash_content_right_num_percentage{
						width: 300rpx;
						height: 30rpx;
						border-radius: 50rpx;
						overflow: hidden;
						background: #ffc3cb;
						position: relative;
						.flash_content_right_num_percentage_now{
							font-size: 20rpx;
							width: 80%;
							height: 30rpx;
							background: #d64d3b;
							position: absolute;
							top: 0;
							left:0;
							line-height: 30rpx;
							color: #eee;
							padding:0 20rpx;
							box-sizing: border-box;
						}
					}
					text{
						color: #666;
						font-size: 28rpx;
						margin-left: 10rpx;
					}
				}
				.flash_content_right_price{
					margin-top: 30rpx;
					display: flex;
					align-items: center;
					justify-content: space-between;
					.flash_content_right_price_left{
						.flash_content_right_price_left_now{
							color: red;
							font-size: 32rpx;
							margin-right: 10rpx;
						}
						.flash_content_right_price_left_old{
							color: #999;
							font-size: 20rpx;
							text-decoration: line-through;
						}
					}
					.flash_content_right_price_buy{
						color: red;
						padding:0 30rpx;
						border-radius: 6rpx;
						border: 1rpx solid red;
					}
				}
			}
		}
	}
</style>
